/**
 * =====================================================================================
 *       @file  ngx_string.h
 *      @brief  
 *
 *  Detailed description starts here.
 *
 *   @internal
 *     Created  2012年05月08日 22时35分50秒 
 *    Revision  1.0.0.0
 *    Compiler  gcc/g++
 *
 *     @author  luis
 * =====================================================================================
 */

#ifndef H_NGX_STRING_H_INCLUDE_
#define H_NGX_STRING_H_INCLUDE_

#include <string.h>

typedef struct
{
    size_t       len;
    u_char      *data;
} ngx_str_t;

typedef struct
{
    ngx_str_t   key;
    ngx_str_t   value;
} ngx_keyval_t;

#define ngx_memzero(buf, n)     (void) memset(buf, 0, n)

#define ngx_null_string         { 0, NULL }
#define ngx_string(str)         { sizeof(str) - 1, (u_char *)str }



#endif
